<template>
  <div class="foot">
    <button v-for="item in btns" :key="item.text" @click="$emit('start',item)">
      <b>{{item.text}}</b>
      <p>1:{{item.ratio}}</p>
    </button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      btns: [
        {
          text: '大',
          ratio: 1
        },
        {
          text: '豹子',
          ratio: 24
        },
        {
          text: '小',
          ratio: 1
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.foot{
  margin-top: 50px;
  display: flex;
  justify-content: space-around;
  button{
    width: 100px;
    height: 100px;
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 16px;
  }
}
</style>
